package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.BangzhuzhongxinMapper;
import com.ruoyi.system.domain.Bangzhuzhongxin;
import com.ruoyi.system.service.IBangzhuzhongxinService;

/**
 * 帮助中心Service业务层处理
 * 
 * @author cjq
 * @date 2024-08-13
 */
@Service
public class BangzhuzhongxinServiceImpl implements IBangzhuzhongxinService 
{
    @Autowired
    private BangzhuzhongxinMapper bangzhuzhongxinMapper;

    /**
     * 查询帮助中心
     * 
     * @param bzzxId 帮助中心主键
     * @return 帮助中心
     */
    @Override
    public Bangzhuzhongxin selectBangzhuzhongxinByBzzxId(Long bzzxId)
    {
        return bangzhuzhongxinMapper.selectBangzhuzhongxinByBzzxId(bzzxId);
    }

    /**
     * 查询帮助中心列表
     * 
     * @param bangzhuzhongxin 帮助中心
     * @return 帮助中心
     */
    @Override
    public List<Bangzhuzhongxin> selectBangzhuzhongxinList(Bangzhuzhongxin bangzhuzhongxin)
    {
        return bangzhuzhongxinMapper.selectBangzhuzhongxinList(bangzhuzhongxin);
    }

    /**
     * 新增帮助中心
     * 
     * @param bangzhuzhongxin 帮助中心
     * @return 结果
     */
    @Override
    public int insertBangzhuzhongxin(Bangzhuzhongxin bangzhuzhongxin)
    {
        return bangzhuzhongxinMapper.insertBangzhuzhongxin(bangzhuzhongxin);
    }

    /**
     * 修改帮助中心
     * 
     * @param bangzhuzhongxin 帮助中心
     * @return 结果
     */
    @Override
    public int updateBangzhuzhongxin(Bangzhuzhongxin bangzhuzhongxin)
    {
        return bangzhuzhongxinMapper.updateBangzhuzhongxin(bangzhuzhongxin);
    }

    /**
     * 批量删除帮助中心
     * 
     * @param bzzxIds 需要删除的帮助中心主键
     * @return 结果
     */
    @Override
    public int deleteBangzhuzhongxinByBzzxIds(Long[] bzzxIds)
    {
        return bangzhuzhongxinMapper.deleteBangzhuzhongxinByBzzxIds(bzzxIds);
    }

    /**
     * 删除帮助中心信息
     * 
     * @param bzzxId 帮助中心主键
     * @return 结果
     */
    @Override
    public int deleteBangzhuzhongxinByBzzxId(Long bzzxId)
    {
        return bangzhuzhongxinMapper.deleteBangzhuzhongxinByBzzxId(bzzxId);
    }
}
